package com.dodi.spring.rmi.firstDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ClientTest {

	public static void main(String[] args) {

		ApplicationContext context = new ClassPathXmlApplicationContext("rmi/firstDemo/applicationContext-client.xml");
		
		HelloRMIService hms = context.getBean("myClient",HelloRMIService.class);
		
		System.out.println(hms.getAdd(1, 2));
	}

}
